package me.lcc.demo.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import me.lcc.demo.model.Account;
/**
 * 读取账号信息
 */
public interface AccountRepository extends JpaRepository<Account, Long>, JpaSpecificationExecutor<Account> {
	/**
	 * 根据用户名查用户信息
	 * @param username
	 * @return
	 */
	public Account findByUsername(String username);
}
